//
//  BHNetWorkRequest.h
//  PropertyMananger
//
//  Created by bh on 16/12/20.
//  Copyright © 2016年 BH. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BHNetWorkRequest : NSObject

typedef void(^SuccessBlock)(id data);//请求成功
typedef void(^FailBlock)(NSString * errorDes);//请求失败
typedef void(^BodyBlock)(id formData);//请求体

#pragma mark - GET
+(void)startGetWithUrl:(NSString *)urlStr Success:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param;

#pragma mark - POST
+(void)startPostWithUrl:(NSString *)urlStr Success:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param;

#pragma mark - POST 函请求体
+(void)postBodyWithUrl:(NSString *)urlStr Success:(SuccessBlock)successBlock Fail:(FailBlock)failBlock Body:(BodyBlock)bodyBlock param:(NSDictionary *)param;

@end
